package com.xmy.cultivate.entity.views;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDate;

/**
 * 招生明细
 */
@Data
public class EnrollDetail {

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private Long orderId;

    @ExcelIgnore
    private Long studentId;

    @ExcelIgnore
    private Integer yearClassId;

    @ExcelProperty(value = "年级", index = 1)
    private String yearClassName;
    @ExcelProperty(value = "学生姓名", index = 0)
    private String studentName;

    @ExcelIgnore
    private Long subjectsId;

    @ExcelProperty(value = "科目", index = 2)
    private String subjectsName;

    @ExcelIgnore
    private Long schoolId;

    @ExcelProperty(value = "报读校区", index = 7)
    private String schoolName;

    @ExcelIgnore
    private Long teacherId;

    @ExcelIgnore
    private String teacherName;

    @ExcelProperty(value = "成交时间", index = 8,converter = EasyExcelLocalDateConverter.class)
    private LocalDate addDate;

    /**
     * 邀约人
     */
    @ExcelProperty(value = "号码", index = 3)
    private String phoneNames;

    /**
     * 邀约人
     */
    @ExcelProperty(value = "邀约", index = 4)
    private String inviteNames;

    /**
     * 试听人
     */
    @ExcelProperty(value = "试听", index = 5)
    private String auditionNames;

    /**
     * 成交人
     */
    @ExcelProperty(value = "成交", index = 6)
    private String bargainNames;

    //类型：邀约:1，试听:2，成交:3
    @ExcelIgnore
    private Integer type;

    //邀约:1，试听:2，成交:3
    @ExcelIgnore
    private String typeName;

    //0未核对，1已核对
    @ExcelIgnore
    private Integer checkType;

    //数据： 1 或 0.5 ，最多两人
    @ExcelIgnore
    private double dataNum;

    @ExcelIgnore
    private double dealNum;

    //总人次
    @ExcelIgnore
    private Integer peopleTotal;

    //已核对
    @ExcelIgnore
    private Integer verifiedNum;

    //未核对
    @ExcelIgnore
    private Integer notVerifiedNum;

    //金额
    @ExcelIgnore
    private double pushMoney;

    @ExcelIgnore
    @TableField(exist = false)
    private double notCheckType;

}
